<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<body>
		<h1 class="pagetitle">
			New User
		</h1>
		<div class="column1-unit">
				<s:form method="post" action="user!confirm.action"
					validate="true" theme="css_xhtml">
					
					<s:if test=" user.id != null"><s:hidden name="user.id"></s:hidden><s:hidden name="user.password"></s:hidden></s:if>
					
						<table class="formtable">
							<tr>
								<td width="100">
									User Name
								</td>
								<td>
									<s:textfield name="user.userName"></s:textfield>
								</td>
							</tr>
							<tr>
								<td width="100">
									dept
								</td>
								<td>
									<s:select name="user.dept"   list="@com.ac.util.DataStore@getDeptMap()" listKey="key" listValue="value"></s:select>
								</td>
							</tr>
							<tr>
								<td width="100">
									approve
								</td>
								<td>
									<s:radio list="#{'0':'没有','1':'有'}" name="user.approve"></s:radio>
								</td>
							</tr>
							<tr>
								<td width="100">
									authority
								</td>
								<td>
									<s:checkboxlist list="@com.ac.util.DataStore@getAuthorityMap()" name="authoritys" listKey="key" listValue="value"></s:checkboxlist>
								</td>
							</tr>
						</table>
						
						

						<s:reset cssClass="button" theme="simple"></s:reset>
						<s:submit cssClass="button" theme="simple"></s:submit>
				</s:form>
		</div>

	</body>
</html>